package com.pets.springboot_petshop.service;

import com.pets.springboot_petshop.entity.Serviceappointment;
import com.pets.springboot_petshop.entity.Shoppingcart;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/15 上午11:08 周二
 * @Description: 接口
 */
public interface ShoppingcartService {
    //id查询
    Shoppingcart select(int id);
    //user_id查询
    List<Shoppingcart> selectuser_id(int user_id);
    //product_id查询
      List<Shoppingcart> selectproduct_id(int product_id);
    //查询所有
     List<Shoppingcart> findAll();
    //用户购物车check查询
    List<Shoppingcart> selectcheck(Shoppingcart shoppingcart);
    //添加
    int add(Shoppingcart shoppingcart);
    //根据user_id进行删除
    int delete(int user_id);
    //修改数据
    int update(Shoppingcart shoppingcart);
    int updatequantity(Shoppingcart shoppingcart);
    int updatecheck(Shoppingcart shoppingcart);

    boolean updateCheckForAll(int user_id);

    Shoppingcart selectupdate (Shoppingcart shoppingcart);
}
